<template>
    <div id="editEvery">
        <header>
            <span @click="goBack()">取消</span>
            <div>编辑</div>
            <span @click='save'>保存</span>
        </header>
        <div>
            <textarea placeholder="请输入内容" v-model='value'>
            </textarea>   
        </div>    
    </div>
</template>
<script>
    export default {
        data() {
            return {
               value: '' ,
            }
        },
        methods: {
            //返回上一级
            goBack() {
                this.$router.back();
            },
            //保存 localStorage中存
            save() {
               
                if(this.$router.query.key) {
                    // localStorage.setItem("medicalObj", this.value);
                }
                
            }   
        },
        created() {
            
        }, 
    }

</script>
<style lang="scss" scoped>

</style>